# coding: utf8

# VOICE OF ACCESS MENU
# response.menu_voiceofaccess_org  = [
#     (T('voiceofaccess.org'), False, 'http://www.voiceofaccess.org', [])
#     ]

# response.menu+=response.menu_voiceofaccess_org

# response.menu_chrissteel_com = [
#     (T('chrissteel.com'), False, 'http://www.chrissteel.com/init/default/my_work', [])
#     ]
    
# response.menu+=response.menu_chrissteel_com

response.menu_plugin_font_blackout_midnight=[
    (T('Blackout Midnight'), False, URL('plugin_font_blackout', 'blackoutmidnight'),
        [
        ]
   )]
   
response.menu_plugin_font_blackout_2am=[
    (T('Blackout 2AM'), False, URL('plugin_font_blackout', 'blackout2am'),
        [
        ]
   )]
   

response.menu+=response.menu_plugin_font_blackout_midnight
response.menu+=response.menu_plugin_font_blackout_2am


# coding: utf8
# initialization.py
import os 
initialization_file_path = os.path.join(request.folder,'models','000_uc_initialization.py')

# create an initialization file if we do not have one
if not 'initialization_file_created' in globals():
    if not os.path.exists(initialization_file_path):
        our_file = open(initialization_file_path,"w")
        our_text = 'initialization_file_created = True\n'
        our_file.writelines(our_text)
        our_file.close()
else:
    print('models/plugin_font_orbitron/initialization.py found')
    print('initialization_file_created globals')


if not 'group_font_admin_created' in globals():
    if not db(db.auth_group.role=='font_admin').select(): 
        db.auth_group.insert(role='font_admin',description='a user who can administer fonts')
        our_file = open(initialization_file_path,"a")
        our_text = 'group_font_admin_created = True\n'
        our_file.write(our_text)
        our_file.close()
else:
    print('models/plugin_font_orbitron/initialization.py found')
    print('group_font_admin_created globals')
